package com.hospital.dao;

import com.hospital.entity.Jurisdiction;
import com.hospital.entity.RoleJurisdictionVo;
import com.hospital.entity.UserJurisdiction;
import com.hospital.entity.UserJurisdictionVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JurisdictionMapper {
    //查所有权限
    public List<Jurisdiction> SelectAll();

    //查角色与权限
    public List<RoleJurisdictionVo> SelectRoleJurisdiction();

    //添加方法
    public Integer Insert(UserJurisdiction userJurisdiction);

    //删除方法
    public Integer BulkDelete(List<Integer> id);

    //用户与权限查询
    public List<UserJurisdictionVo> SelectByUserJurisdiction(Integer userId);
}
